#ifndef RIGHTCLICK_H
#define RIGHTCLICK_H

#include <QCalendarWidget>
#include "eventshandler.h"

class RightClick : public QCalendarWidget
{
Q_OBJECT
public:
    explicit RightClick(EventsHandler *events);
    void setDate(QDate date);

private:
    bool eventFilter(QObject *, QEvent *);
    QDate selectedDate;
    EventsHandler *envts;
private slots:
    void clickedNew();
    void clickedEdit();
};

#endif // RIGHTCLICK_H
